package com.mask.im.business.model.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@ApiModel("用户信息实体")
@TableName("sys_user_info")
public class UserInfo implements Serializable {

	@TableId(value = "id",type = IdType.AUTO)
	@ApiModelProperty("id")
	private Long id;

	@ApiModelProperty("昵称")
	private String nickName;

	@ApiModelProperty(value ="账号")
	private String username;

	@ApiModelProperty("头像")
	private String avatar;

	@ApiModelProperty("地址")
	private String address;

	@ApiModelProperty("性别")
	private Integer gender;

	@ApiModelProperty("简述")
	private String intro;

	@ApiModelProperty("是否禁用(0禁用，1不禁用)")
	private Integer disable;

	@ApiModelProperty("是否允许其他人搜索自己")
	private Integer allowSearching;

	@ApiModelProperty("出生日期")
	private Date dateBirth;

	@ApiModelProperty("创建时间")
	@TableField(fill = FieldFill.INSERT)
	private Date createTime;

	@ApiModelProperty("更新时间")
	@TableField(fill = FieldFill.INSERT_UPDATE)
	private Date updateTime;

}
